<?php

function themeConfig($form) {
    $logoUrl = new Typecho_Widget_Helper_Form_Element_Text('logoUrl', NULL, NULL, _t('站点LOGO地址'), _t('在这里填入一个图片URL地址, 以在网站标题前加上一个LOGO'));
    $form->addInput($logoUrl);
    
    $sidebarBlock = new Typecho_Widget_Helper_Form_Element_Checkbox('sidebarBlock', 
    array('ShowRecentPosts' => _t('显示最新文章'),
    'ShowRecentComments' => _t('显示最近回复'),
    'ShowCategory' => _t('显示分类'),
    'ShowArchive' => _t('显示归档'),
    'ShowOther' => _t('显示其它杂项')),
    array('ShowRecentPosts', 'ShowRecentComments', 'ShowCategory', 'ShowArchive', 'ShowOther'), _t('侧边栏显示'));
    
    $form->addInput($sidebarBlock->multiMode());
}
function _________(){echo base64_decode("PHA+PGkgY2xhc3M9ImdseXBoaWNvbiBnbHlwaGljb24tcHVzaHBpbiI+PC9pPiB0ZW1wbGF0ZSBieSA8YSBocmVmPSJodHRwOi8vaHVveHIuY29tIj5tb2xpPC9hPiB8IDxhIGhyZWY9Imh0dHA6Ly93d3cucmtpZGMubmV0IiBhbHQ9IuiZmuaLn+S4u+acuuS6keS4u+acukdpdGh1YiBwYWdlc+aJmOeuoSI+UktJREM8L2E+PC9wPg==");}
function get_panel_color(){
    $color = array("success", "info", "warning" , "danger");
    $rand = rand(0, 3);
    return $color[$rand];
    //return "default";  //註釋掉上面的一行，然後取消注释這一行，挂件便不会有颜色变化
}


/*
function themeFields($layout) {
    $logoUrl = new Typecho_Widget_Helper_Form_Element_Text('logoUrl', NULL, NULL, _t('站点LOGO地址'), _t('在这里填入一个图片URL地址, 以在网站标题前加上一个LOGO'));
    $layout->addItem($logoUrl);
}
*/

